<?php
return array(
	'attributeLabels' => array(
		'start_time' => '建团开始日期',
		'end_time' => '结束日期',
		'build_type' => '建团规则',
		'end_type' => '建团结束类型',
		'by_day' => '所隔天数',
	),

	'rules' => array(
		array('by_day', 'numerical', 'integerOnly'=>true, 'min'=>1),
		array('start_time, end_type, build_type','required'),
	),
	
	'behaviors' => array(
		'arrayAtt' => array(
			'class' => 'coms.behaviors.ArrayAttributeBehavior',
			'attributes' => array(
				'by_week',
				'by_date'
			),
		),
		'ruleName' => array(
			'class' => 'coms.behaviors.goods.TravelRuleNameBehavior',
		),
	),
	
	'_import' => array(
		array('*', 'models.ActiveRecord//*'),
	),
);